<!DOCTYPE HTML>
<html>
	<head>
		<style type="text/css"></style>
		<meta content="no-siteapp" http-equiv="Cache-Control">
		<link media="handheld" rel="alternate">
		<!-- end 云适配 -->
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<title>发布新职位-城建就业指导网</title>

		<script type="text/javascript">
			console.log("城建就业指导网");
		</script>
		<link href="${rc.contextPath}/css/style.css" type="text/css" rel="stylesheet">
		<link href="${rc.contextPath}/css/external.min.css" type="text/css" rel="stylesheet">
		<link href="${rc.contextPath}/css/popup.css" type="text/css" rel="stylesheet">
		
		
		<link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
  		<script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  		<script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
  		
		
		<!--[if lte IE 8]>
		    <script type="text/javascript" src="${rc.contextPath}/js/excanvas.js"></script>
		<![endif]-->
		
		<style type="text/css">
			select[class~=selectr]{
				appearance: none;
				-moz-appearance: none;
				-webkit-appearance: none;
			}
			
		</style>
		
	</head>

	<body>
		<div id="body">
			
			<!-- end #header -->
			<div id="container">

				<div class="sidebar">
					<a class="btn_create" href="createjob.html">发布新职位</a>
					
					<dl class="company_center_aside">
						<dt>我发布的职位</dt>
						<dd>
							<a href="valid_job.html">有效职位</a>
						</dd>
						<dd>
							<a href="nullity_job.html">已下线职位</a>
						</dd>
					</dl>
					
				</div>
				<!-- end .sidebar -->
				<div class="content">
					<dl class="company_center_content">
						<dt>
                        <h1>
                            <em></em>
                                                       		发布新职位
                           	                        </h1>
                    </dt>
						<dd>
							<div class="ccc_tr"><span>$!errormsg</span></div>
							
							<form action="${rc.contextPath}/user/enterprise/createjob" method="post" id="addjobForm">
								<input type="hidden" value="$!companyid" name="job.job_company_id">
								<table class="btm">
									<tbody>
										<tr>
											<td width="25"><span class="redstar">*</span></td>
											<td width="85">职位行业</td>
											<td>
												<select class="selectr selectr_380" name="job.job_domain_id">
													#foreach($!domain in $!domainList)
														<option value="$!domain.id"><span>$!domain.domain_name</span></option>
													#end
												</select>
												
											</td>
										</tr>
										<tr>
											<td><span class="redstar">*</span></td>
											<td>职位名称</td>
											<td>
												<input type="text" placeholder="请输入职位名称，如：产品经理" value="" name="job.job_name" id="job.job_name" required="required">
											</td>
										</tr>
										<tr>
											<td></td>
											<td>所属部门</td>
											<td>
												<input type="text" placeholder="请输入所属部门" value="" name="job.job_department" id="job.job_department" required="required">
											</td>
										</tr>
									</tbody>
								</table>

								<table class="btm">
									<tbody>
										<tr>
											<td width="25"><span class="redstar">*</span></td>
											<td width="85">工作性质</td>
											<td>
														全职<em></em>
														<input type="radio" name="job.job_category" value="0" >
														兼职<em></em>
														<input type="radio" name="job.job_category" value="1">
														实习<em></em>
														<input type="radio" name="job.job_category" value="2">
											</td>
										</tr>
										<tr>
											<td><span class="redstar">*</span></td>
											<td>月薪范围</td>
											<!--<h3><span>(最高月薪不能大于最低月薪的2倍)</span></h3> -->
											<td>
												<div class="salary_range">
													<div>
														<input type="number" placeholder="最低月薪" value="" id="salaryMin" name="job.job_salary_min"  required="required">
														<span>k</span>
													</div>
													<div>
														<input type="number" placeholder="最高月薪" value="" id="salaryMax" name="job.job_salary_max"  required="required">
														<span>k</span>
													</div>
													<span>只能输入整数，如：9</span>
												</div>
											</td>
										</tr>
										<tr>
											<td><span class="redstar">*</span></td>
											<td>工作城市</td>
											<td>
												<input type="text" placeholder="请输入工作城市，如：北京"  name="location" id="autoshowlocation">
												<input type="hidden" name="job.job_location" id="job_location"  required="required">
											</td>
										</tr>
									</tbody>
								</table>

								<table class="btm">
									<tbody>
										<tr>
											<td width="25"><span class="redstar">*</span></td>
											<td width="85">工作经验</td>
											<td>
												<select class="selectr selectr_380" name="job.job_request_worktime">
													<option value="0"><span>不限</span></option>
													<option value="1"><span>应届毕业生</span></option>
													<option value="2"><span>1年以下</span></option>
													<option value="3"><span>1-3年</span></option>
													<option value="4"><span>3-5年</span></option>
													<option value="5"><span>5-10年</span></option>
													<option value="6"><span>10年以上</span></option>
												</select>
												
											</td>
										</tr>
										<tr>
											<td><span class="redstar">*</span></td>
											<td>学历要求</td>
											<!--<h3><span>(最高月薪不能大于最低月薪的2倍)</span></h3> -->
											<td>
												<select class="selectr selectr_380" name="job.job_request_edubackground" >
													<option value="0"><span>不限</span></option>
													<option value="1"><span>大专</span></option>
													<option value="3"><span>本科</span></option>
													<option value="4"><span>硕士</span></option>
													<option value="5"><span>博士</span></option>
												</select>
												
											</td>
										</tr>
									</tbody>
								</table>

								<table class="btm">
									<tbody>
										<tr>
											<td width="25"><span class="redstar">*</span></td>
											<td width="85">职位诱惑</td>
											<td>
												<input type="text" placeholder="20字描述该职位的吸引力，如：福利待遇、发展前景等"  name="job.job_request_brief" class="input_520" id="job.job_request_brief"  required="required">
											</td>
										</tr>
										<tr>
											<td><span class="redstar">*</span></td>
											<td>职位描述</td>
											<td>
												<span class="c9 f14">(建议分条描述工作职责等。请勿输入公司邮箱、联系电话及其他外链，否则将自动删除)</span>
													<textarea  class="form-control" id="request_content" name="jobDetail.request_content" placeholder="请输入职位详情描述"  required="required"></textarea>
												</span>

											</td>
										</tr>
									</tbody>
								</table>

								<table>
									<tbody>
										<tr>
											<td width="25"><span class="redstar">*</span></td>
											<td colspan="2">
												接收简历邮箱： 
												<input type="text" value="$!curr_user.email" id="job.job_receive_email" name="job.job_receive_email" required="required">
											</td>
										</tr>
										<tr>
											<td width="25"></td>
											<td colspan="2">
												<input type="submit" value="发布" id="jobPreview" class="btn_32">
												<input type="reset" value="重置"  class="btn_32">
											</td>
										</tr>
									</tbody>
								</table>
							</form>
						</dd>
					</dl>
				</div>
				<!-- end .content -->

			</div>
			<!------------------------------------- end ----------------------------------------->

			<script src="${rc.contextPath}/js/jobs.min.js" type="text/javascript"></script>

			<div class="clear"></div>
			<a rel="nofollow" title="回到顶部" id="backtop" style="display: none; "></a>
		</div>
		<!-- end #container -->
		</div>
		<!-- end #body -->

		<script src="${rc.contextPath}/js/core.min.js" type="text/javascript"></script>
		<script src="${rc.contextPath}/js/popup.min.js" type="text/javascript"></script>

		<!--  -->

		
	</body>
	
	<script type="text/javascript">

//自动 补全方法  
$("#autoshowlocation").autocomplete({  
  minLength:1,
  source: function(request,response){
 	 jQuery.ajax({  
 	        type:'get',  
 	        contentType: "application/json",  
 	        url: "${rc.contextPath}/location/autoshow?keyword="+$("#autoshowlocation").val(),  
 	        dataType: "json",  
 	        success:function(data){
 	        	for(var i = 0;i<data.locationList.length;i++){
 	        		console.log(data.locationList[i].location_name);
 	        	}
 	        	console.log(data.locationList);
 	        	response( jQuery.map(data.locationList, function(item) {
 	                return {
 	                  location_name: item.location_name,
 	                  id: item.id
 	                }
 	              }));  
 	        }  
 	      });  
  },
  focus: function(event, ui) {
      $("#autoshowlocation").val(ui.item.location_name);
      return false;
  },
  select: function(event, ui) {
      $("#autoshowlocation").val(ui.item.location_name);
      $("#job_location").val(ui.item.id);
      return false;
  }
}).data( "ui-autocomplete" )._renderItem = function( ul, item ) {
	      return $( "<li>" )
	        .append( "<a>" + item.location_name + "</a>" )
	        .appendTo( ul );
	    };; 

</script>

</html>